package FactoryMethod

class MainClass {
    companion object {
        @JvmStatic
        fun main(args: Array<String>) {
            val simpleServiceFactory = SimpleServiceFactory()
            val simpleService = simpleServiceFactory.CreateInstance()

            val complexServiceFactory = ComplexServiceFactory()
            val complexService = complexServiceFactory.CreateInstance()
        }
    }
}